package com.xaicode.template.jaeger.service;

import org.springframework.kafka.core.KafkaTemplate;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;

/**
 * @author Locker
 * @date 2021/8/9 0009 14:40
 */
@Service
public class ProducerServiceImpl implements IProducerService {

    @Resource
    private KafkaTemplate<String, String> kafkaTemplate;

    @Override
    public void send(String topic, String msg) {
        kafkaTemplate.send(topic, msg);
    }
}
